package com.center.biz.impl;

import com.center.api.model.EduMobilesendHistoryWithBLOBs;
import com.center.api.remote.RemoteEduMobilesendHistoryWithBLOBsService;
import com.center.biz.dao.EduMobilesendHistoryMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(version = "1.0",interfaceClass = RemoteEduMobilesendHistoryWithBLOBsService.class)
public class RemoteEduMobilesendHistoryServiceImpl implements RemoteEduMobilesendHistoryWithBLOBsService {


    @Autowired
    private EduMobilesendHistoryMapper eduMobilesendHistoryMapper;

    @Override
    public int save(EduMobilesendHistoryWithBLOBs eduMobilesendHistoryWithBLOBs) {
        return eduMobilesendHistoryMapper.insertSelective(eduMobilesendHistoryWithBLOBs);
    }

    @Override
    public int update(EduMobilesendHistoryWithBLOBs eduMobilesendHistoryWithBLOBs) {
        return eduMobilesendHistoryMapper.updateByPrimaryKeySelective(eduMobilesendHistoryWithBLOBs);
    }

    @Override
    public int delete(int id) {
        return eduMobilesendHistoryMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<EduMobilesendHistoryWithBLOBs> select(EduMobilesendHistoryWithBLOBs eduMobilesendHistoryWithBLOBs) {
        return null;
    }

    @Override
    public EduMobilesendHistoryWithBLOBs getById(int id) {
        return eduMobilesendHistoryMapper.selectByPrimaryKey(id);
    }
}
